{% extends "base.html" %}

{% block header %}
<link rel="stylesheet" href="/css/project.css">
<style>
    .upload-container {
        max-width: 800px;
        margin: 40px auto;
        padding: 30px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .upload-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .upload-header h2 {
        color: #0d6efd;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .upload-header p {
        color: #6c757d;
        font-size: 16px;
    }

    .upload-area {
        border: 2px dashed #dee2e6;
        border-radius: 8px;
        padding: 40px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .upload-area:hover {
        border-color: #0d6efd;
        background: #f8f9fa;
    }

    .upload-area i {
        font-size: 48px;
        color: #0d6efd;
        margin-bottom: 15px;
    }

    .upload-area p {
        margin: 0;
        color: #6c757d;
    }

    .file-input {
        display: none;
    }

    .upload-btn {
        background: #0d6efd;
        color: #fff;
        padding: 12px 30px;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 500;
        margin-top: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .upload-btn:hover {
        background: #0b5ed7;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
    }

    .file-list {
        margin-top: 30px;
    }

    .file-item {
        display: flex;
        align-items: center;
        padding: 12px;
        background: #f8f9fa;
        border-radius: 6px;
        margin-bottom: 10px;
    }

    .file-item i {
        font-size: 24px;
        color: #0d6efd;
        margin-right: 12px;
    }

    .file-name {
        flex-grow: 1;
        color: #212529;
    }

    .file-size {
        color: #6c757d;
        margin-right: 12px;
    }
</style>
{% endblock %}

{% block content %}
<div class="container">
    <div class="upload-container fade-in">
        <div class="upload-header">
            <h2>File Upload</h2>
            <p>Select or drag files to upload</p>
        </div>
        
        <form action="/upload" method="post" enctype="multipart/form-data">
            <div class="upload-area" onclick="document.getElementById('fileInput').click()">
                <i class="bi bi-cloud-upload"></i>
                <p>Click or drag files here to upload</p>
                <p class="text-muted">Supported formats: PDF, DOC, DOCX</p>
                <input type="file" id="fileInput" class="file-input" name="file" multiple>
            </div>
            
            <div class="text-center">
                <button type="submit" class="upload-btn">
                    <i class="bi bi-upload"></i> Upload Files
                </button>
            </div>
        </form>

        <div class="file-list">
            <!-- File items will be dynamically added here -->
        </div>
    </div>
</div>
{% endblock %}